package com.shensi.adminCollect.service.station;



import com.shensi.adminCollect.domain.station.PhysicalCardBalance;
import com.shensi.adminCollect.domain.station.dto.PhysicalCardBalanceListDto;
import com.shensi.adminCollect.domain.station.dto.PhysicalCardSecretKeyDto;

import java.util.List;

/**
 * 实体卡充值/消费记录
 * */
public interface IPhysicalCardBalanceService {

    /**
     * 添加充值/消费记录
     * */
    PhysicalCardSecretKeyDto addPhysicalCardBalance(PhysicalCardBalance physicalCardBalance);

    /**
     * 查询充值/消费记录列表
     * 需要与实体卡联表查询
     * */
    List<PhysicalCardBalanceListDto> selectPhysicalCardBalanceList(PhysicalCardBalanceListDto physicalCardBalanceListDto);

    /**更新消费订单状态*/
    int updatePhysicalCardBalance(PhysicalCardBalance physicalCardBalance);

    /**
     * pos充值退款
     * @param id 充值订单id
     * @return
     */
    Long posRechargeRefund(Long id);

    PhysicalCardBalanceListDto selectPhysicalCardBalanceStatistics(PhysicalCardBalanceListDto physicalCardBalanceListDto);

}
